<%= render :partial => "/tr8n/admin/common/header" %>
<%= render :partial => "tabs" %>
<%= tr8n_will_filter(@metrics) %>

<%= form_tag("", :id => "metrics_form") do %>
  <%= will_filter_table_tag(@metrics, :columns => [
    [:icn, image_tag("tr8n/icons/chart_bar.png"), :title => "", :style => "width:12px;"],
    [:translator_id, lambda{|metric|
      if metric.translator
        link_to(metric.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => metric.translator.id)
      else
        "Unknown" 
      end  
    }, :filterable => true],
    [:language_id, lambda{|metric|
      if metric.language
        link_to(metric.language.english_name, :controller => "/tr8n/admin/language", :action => :view, :lang_id => metric.language.id)
      else
         "Deleted Language"    
      end  
    }, :filterable => true],
    :total_translations, :accepted_translations, :rejected_translations, :total_votes, :positive_votes, :negative_votes, :updated_at
  ]) %>
<% end %>

<%= render :partial => "/tr8n/admin/common/footer" %>
